package com.whfc.iot.mach.entity;

import com.whfc.iot.mach.constant.MsgConst;
import lombok.Data;

/**
 * @Description: 倾斜报警参数
 * @author: xugcheng
 * @version: 1.0
 * @date: 2021-01-06 11:22
 */
@Data
public class MachParamRotary extends MachParamItem {

    /**
     * 左倾
     */
    private int left;

    /**
     * 右倾
     */
    private int right;

    /**
     * 前倾
     */
    private int front;

    /**
     * 后倾
     */
    private int back;

    @Override
    public int paramType() {
        return MsgConst.PARAM_TYPE_ROTARY;
    }

    @Override
    public int dataLength() {
        return 5;
    }
}
